﻿/*----------------------------------------------------------------
//  <copyright file="AnonymousAuthorizationFilter.cs" company="MicroCloud@151504200868">
//      Copyright © 2020-2024 MicroCloud Corporation, All rights reserved.
//  </copyright>
//  <site>https://gitee.com/chenmm123/microclouds</site>
//  <last-editor>cmm</last-editor>
//  <last-date>2022-11-15 14:29</last-date>
//----------------------------------------------------------------*/

namespace MicroCloud.Hangfire.Dashboard.Authorization
{
    #region "Dashboard匿名权限过滤器"
    /// <summary>
    /// Dashboard匿名权限过滤器
    /// </summary>
    public class AnonymousAuthorizationFilter : IDashboardAuthorizationFilter
    {
        #region "方法"
        #region "授权"
        /// <summary>
        /// 授权
        /// </summary>
        /// <param name="context"></param>
        /// <returns></returns>
        public bool Authorize(DashboardContext context)
        {
            //var httpcontext = context.GetHttpContext();
            //return httpcontext.User.Identity.IsAuthenticated;
            return true;
        }
        #endregion

        #endregion

    }
    #endregion

}
